package com.starsoft.frame.fileimport.pojo;

public enum NullType {
	
	notnull, unique, nullable;
	
	public static NullType toEnum(String str) {
		if ("notnull".equalsIgnoreCase(str))
			return NullType.notnull;
		if ("unique".equalsIgnoreCase(str))
			return NullType.unique;
		if ("nullable".equalsIgnoreCase(str))
			return NullType.nullable;
		throw new RuntimeException("nulltype: " + str + " is not support");
	}
}
